package com.example.bootcurriculumproject.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bootcurriculumproject.dto.ShipDto;
import com.example.bootcurriculumproject.entity.Goods;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    public int addOne(Goods goods);
    public boolean update(Goods goods);
    public boolean delete(String no);
    public List findByName(String name);
    public List findByAll();
    public List findGoodsByType(String type);

    public boolean submitOneGoods(ShipDto shipDto);
    public Goods getGoodsById(String goodId);
}
